import request from '@/utils/request'

// 查询死淘明细列表
export function listReductionrecords(query) {
    return request({
        url: '/reductionrecords/reductionrecords/list',
        method: 'get',
        params: query
    })
}

// 查询死淘明细详细
export function getReductionrecords(id) {
    return request({
        url: '/reductionrecords/reductionrecords/' + id,
        method: 'get'
    })
}

// 新增死淘明细
export function addReductionrecords(data) {
    return request({
        url: '/reductionrecords/reductionrecords',
        method: 'post',
        data: data
    })
}

// 修改死淘明细
export function updateReductionrecords(data) {
    return request({
        url: '/reductionrecords/reductionrecords',
        method: 'put',
        data: data
    })
}

// 删除死淘明细
export function delReductionrecords(id) {
    return request({
        url: '/reductionrecords/reductionrecords/' + id,
        method: 'delete'
    })
}
